package com.mfz.users

import com.mfz.common.servlet.SUCCESS
import com.mfz.common.units.ID
import org.junit.Test

/**
 * create by 2020/1/23.
 *
 * @author zhengyimin
 */
class CompanyTest {

	@Test
	fun getDepartments() {
		val com = Company.get(ID, 201)!!
		println(com.departments)
	}

	@Test
	fun getOne() {
		val com = Company.get(ID, 201)
		val com2 = Company.get(ID, 203)
		println(com)
		println(com2)
		println(com!!.type)
		println(SUCCESS.addInfoToData("company", Company.get(ID, 203)!!))
	}
}
